/* index.css */
:root {
  --background-image: url("../../images/shen.png"); /* 默认背景图片 */
  --box-color: #6b6565;
  --text-color: #f1eeee;
}

body {
  background-image: var(--background-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.content {
  padding: 20px;
  margin: 20px;
  border-radius: 5px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  box-sizing: border-box;
  background-color: var(--box-color);
  color: var(--text-color);
}

.box {
  background-color: var(--box-color);
  padding: 20px;
  margin: 20px;
}

.Left {
  width: 500px;
  height: 680px;
  margin-top: 20px;
  /* background-color: #f1eeee; */
  position: relative; /* 设置为相对定位，作为 LeftSection 的定位参考 */
}

/* 新增 LeftSection 的样式 */
.LeftSection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.Three {
  margin-left: 1200px;
}

.Righttop {
  width: 650px;
  height: 390px;
  margin-left: 650px;
  margin-top: -480px;
  /* background-color: #f1eeee; */
  position: relative; /* 确保弹幕容器可以相对于此元素定位 */
}

.danmaku-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* 新增样式类，用于布局视频和弹幕输入框 */
.video-and-danmaku {
  /* display: flex;
  align-items: flex-start; */
}

.danmaku-input-container {
  margin-left: 900px; /* 调整输入框和按钮与视频的间距 */
  margin-top: -40px;
  position: absolute;
}

/* 输入框样式 */
.danmaku-input-container input {
  width: 150px;
  /* padding: 8px; */
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  margin-top: 30px;
}

/* 发布弹幕按钮样式 */
.danmaku-input-container button {
  width: 65px;
  /* padding: 8px; */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* 按钮悬停效果 */
.danmaku-input-container button:hover {
  background-color: #0056b3;
}
